<!--编辑企业用户-->
<template>
    <div>
        <el-tabs v-model="activeName2" type="card" >
            <el-tab-pane label="企业信息" name="first">
                <el-row>
                    <el-col :span="6"><h2>基础资料</h2></el-col>

                </el-row>
                <!--<p>点击上传图片</p>-->
                <!--<el-upload-->
                <!--class="upload-demo"-->
                <!--:action="fileUploadAction"-->
                <!--:on-preview="handlePreview"-->
                <!--:on-remove="handleRemove"-->
                <!--:file-list="fileList2"-->
                <!--list-type="picture">-->
                <!--<el-button size="small" type="primary">点击上传</el-button>-->
                <!--<div slot="tip" class="el-upload__tip">只能上传jpg/png文件，且不超过500kb</div>-->
                <!--</el-upload>-->
                <!--<el-upload-->
                <!--class="avatar-uploader"-->
                <!--:action="fileUploadAction"-->
                <!--:show-file-list="false"-->
                <!--:on-remove="handleRemove"-->
                <!--:on-success="handleAvatarSuccess"-->
                <!--:before-upload="beforeAvatarUpload">-->
                <!--<img v-if="imageUrl" :src="imageUrl" class="avatar">-->
                <!--<i v-else class="el-icon-plus avatar-uploader-icon"></i>-->
                <!--</el-upload>-->
                <!--<el-button type="text" v-if="imageUrl" style="margin-left:25px" @click="paramFileRemove">删除图片</el-button>-->
                <el-form  ref="form" :model="form" label-width="80px" :rules="rules">
                    <!--企业名称-->
                    <el-form-item label="企业名称" prop="enterprise_name">
                        <el-input v-model="form.enterprise_name" style="width:220px" ></el-input>
                    </el-form-item>
                    <el-form-item label="企业类型" prop="enterprise_type">
                        <el-select v-model="form.enterprise_type">
                            <el-option :label="item.name" :value="item.id" v-for="item in ComtypeMessage"></el-option>
                        </el-select>
                    </el-form-item>
                    <!--上市情况-->
                    <el-row >
                        <el-col :span="8">
                            <el-form-item label="上市情况" prop="is_list">
                                <el-select v-model="form.is_list">
                                    <el-option :label="item.name" :value="item.id" v-for="item in shMessage"></el-option>
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="8">
                            <el-form-item prop="stock_code" label="股票代码" v-if="form.is_list!=''&&form.is_list!='11'">
                                <el-input v-model="form.stock_code"  placeholder="请输入股票代码"></el-input>
                            </el-form-item>
                        </el-col>

                    </el-row>
                    <!--<el-form-item label="上市情况" prop="is_list">-->
                        <!--<el-select v-model="form.is_list">-->
                            <!--<el-option :label="item.name" :value="item.id" v-for="item in shMessage"></el-option>-->
                        <!--</el-select>-->
                    <!--</el-form-item>-->

                    <!--技术路径-->
                    <!--<el-form-item label="技术路径" prop="">-->
                        <!--<el-select v-model="form.is_list">-->
                            <!--<el-option :label="item.name" :value="item.id" v-for="item in shMessage"></el-option>-->
                        <!--</el-select>-->
                    <!--</el-form-item>-->
                    <el-form-item label="联络状态" prop="contact_state">
                        <el-select v-model="form.contact_state">
                            <el-option :label="item.name" :value="item.id" v-for="item in stateMessage"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="核心技术" prop="core_technology" >
                        <el-input v-model="form.core_technology" style="width: 220px"></el-input>
                    </el-form-item>
                    <el-form-item label="经营范围" prop="manage_range" >
                        <el-input v-model="form.manage_range" style="width: 220px"></el-input>
                    </el-form-item>
                    <!--涉及领域-->
                    <el-form-item label="涉及领域" prop="involve_field">
                        <el-checkbox-group v-model="form.involve_field">
                            <el-checkbox :label="item.id" v-for="item in LyMessage">{{item.name}}</el-checkbox>
                        </el-checkbox-group>
                    </el-form-item>
                    <el-form-item label="技术路径" prop="register_fund">
                        <el-button type="primary" @click="settePath('addPath')">设置</el-button>
                    </el-form-item>
                    <el-form-item label="注册资金（万元）" prop="register_fund">
                        <el-input v-model="form.register_fund" style="width: 220px" type="number"></el-input>
                    </el-form-item>
                    <!--法人代表-->
                    <el-form-item label="法人代表" prop="legal_person">
                        <!--<el-input v-model="form.legal_person" style="width: 220px"></el-input>-->
                        <el-select v-model="form.legal_person" filterable placeholder="请选择法人">
                            <el-option :label="item.personal_name" :value="item.personal_id" v-for="item in manLists"></el-option>
                        </el-select>
                        <el-button type="primary" @click="openDialog('addFaren')">没有此人?去添加</el-button>
                    </el-form-item>
                    <el-form-item label="联系人" prop="contact_person">
                        <el-select v-model="form.contact_person" filterable placeholder="请选择联系人">
                            <el-option :label="item.personal_name" :value="item.personal_id" v-for="item in manLists"></el-option>
                        </el-select>
                        <el-button type="primary" @click="openDialog('addLinkman')">没有此人?去添加</el-button>
                    </el-form-item>
                    <!--企业地址三级连动 -->
                    <el-form-item label="企业地址" prop="region">
                        <el-select v-model="form.province" size="small" style="width:120px" @change="change()">
                            <el-option :label="item.district" :value="item.district_id" v-for="item in provinceList">
                            </el-option>
                        </el-select>
                        <el-select v-model="form.city" size="small" style="width:120px" @change="changeThree()" v-if="city.length">
                            <el-option :label="item.district" :value="item.district_id" v-for="item in city"></el-option>
                        </el-select>
                        <el-select v-model="form.area" size="small" style="width:120px" v-if="city.length&&country.length">
                            <el-option :label="item.district" :value="item.district_id" v-for="item in country"></el-option>
                        </el-select>
                    </el-form-item>
                    <!--企业详细地址-->
                    <el-form-item label="详细地址" prop="detail_address">
                        <el-input v-model="form.detail_address" style="width: 220px"></el-input>
                    </el-form-item>
                    <el-row :gutter="20">
                        <!--企业e-mail-->
                        <el-col :span="8">
                            <el-form-item label="企业E-mail" prop="enterprise_email">
                                <el-input v-model="form.enterprise_email" ></el-input>
                            </el-form-item>
                        </el-col>
                        <!--企业电话-->
                        <el-col :span="8">
                            <el-form-item label="企业电话" prop="enterprise_phone">
                                <el-input v-model="form.enterprise_phone" ></el-input>
                            </el-form-item>
                        </el-col>
                        <!--企业传真-->
                        <el-col :span="8">
                            <el-form-item label="企业传真" prop="enterprise_fax">
                                <el-input v-model="form.enterprise_fax" ></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    <!--企业网址-->
                    <el-form-item label="企业网址" prop="enterprise_website">
                        <el-input v-model="form.enterprise_website" style="width: 220px"></el-input>
                    </el-form-item>

                            <el-form-item label="公司介绍" prop="company_introduce" >
                                <el-input type="textarea" :rows="3" v-model="form.company_introduce"></el-input>
                            </el-form-item>

                            <el-form-item label="评价" prop="company_evaluate">
                                <el-input v-model="form.company_evaluate" style="width: 500px"></el-input>
                            </el-form-item>
                        <!--合作成果-->
                    <el-form-item label="合作成果" prop="cooperate_achievements" >
                        <el-input v-model="form.cooperate_achievements" style="width:500px"></el-input>
                    </el-form-item>
                    <!--跟进记录-->
                    <el-form-item label="跟进记录" prop="follow_record" >
                        <el-input v-model="form.follow_record" style="width:500px"></el-input>
                    </el-form-item>
                </el-form>

                <!--添加法人-->
                <el-dialog title="添加法人" :visible.sync="dialog.addFaren.open" :modal="false" size="full" v-if="dialog.addFaren.open">
                    <addMan></addMan>
                </el-dialog>
                <!--联系人-->
                <el-dialog title="添加联系人" :visible.sync="dialog.addLinkman.open" :modal="false" size="full" v-if="dialog.addLinkman.open">
                    <addMan></addMan>
                </el-dialog>
                <!--设置技术路径-->
                <el-dialog title="设置技术路径" :visible.sync="dialog.addPath.open" :modal="false"  v-if="dialog.addPath.open" top="400px">
                    <el-form>
                        <el-form-item label="技术路径" prop="technical_path">
                            <el-checkbox-group v-model="form.technical_path">
                                <el-checkbox :label="item.id" v-for="item in techPath">{{item.name}}</el-checkbox>
                            </el-checkbox-group>
                        </el-form-item>
                    </el-form>
                    <el-button @click="closeDialog('addPath')">取消</el-button>
                    <el-button type="primary" @click="surePath('addPath')">确定</el-button>
                </el-dialog>
                <!--能力画像-->
                <h2>能力画像</h2>
                <el-tabs type="border-card">
                    <el-tab-pane label="设计" >
                        <template>
                            <el-radio class="radio" v-model="form.has_design_ability" label="0">无设计能力</el-radio>
                            <el-radio class="radio" v-model="form.has_design_ability" label="1">有设计能力</el-radio>
                        </template>
                        <template v-if="form.has_design_ability==1">
                            <div>
                                <el-row>
                                    <el-col :span="18">
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <!--资质类别-->
                                            <el-form-item label="资质类别" prop="design_zizhi_type">
                                                <el-select v-model="form.design_zizhi_type" placeholder="资质类别" size="">
                                                    <el-option :label="item.name" :value="item.id" v-for="item in LBMessagedesign"></el-option>
                                                </el-select>
                                            </el-form-item>
                                            <!--资质颁发单位-->
                                            <el-form-item label="资质颁发单位" prop="design_zizhi_award_unit">
                                                <el-select v-model="form.design_zizhi_award_unit">
                                                    <el-option :label="item.name" :value="item.id" v-for="item in SJBFMessage"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                        <!--资质等级-->
                                        <el-form :inline="true" :model="form">
                                            <el-form-item label="资质等级" prop="design_zizhi_level">
                                                <el-select v-model="form.design_zizhi_level">
                                                    <el-option :label="item.name" :value="item.id" v-for="item in SJDJMessage"></el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-form-item label="收费标准">
                                                <el-input v-model="form.design_charge_standard" placeholder="收费标准"></el-input>
                                            </el-form-item>
                                            <el-form-item label="专业领域">
                                                <el-input v-model="form.design_major_field" placeholder="专业领域"></el-input>
                                            </el-form-item>
                                        </el-form>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>

                                    <el-col :span="5"><div >
                                        <h2>评价星级</h2>
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item prop="design_evaluate_star">
                                                <el-select v-model="form.design_evaluate_star" placeholder="评价星级">
                                                    <el-option label="一星" value="一星"></el-option>
                                                    <el-option label="二星" value="二星"></el-option>
                                                    <el-option label="三星" value="三星"></el-option>
                                                    <el-option label="四星" value="四星"></el-option>
                                                    <el-option label="五星" value="五星"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                    </div></el-col>
                                </el-row>
                                <!--<div style="width:100px;margin-left:80%">-->
                                    <!--<el-button type="warning" @click="sendFormD">保存能力</el-button>-->
                                <!--</div>-->
                            </div>
                        </template>
                    </el-tab-pane>
                    <el-tab-pane label="咨询">
                        <template>
                            <el-radio class="radio" v-model="form.has_consult_ability" label="0">无咨询能力</el-radio>
                            <el-radio class="radio" v-model="form.has_consult_ability" label="1">有咨询能力</el-radio>
                        </template>
                        <template v-if="form.has_consult_ability==1">
                            <div>
                                <el-row>
                                    <el-col :span="18">
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <!--资质类别-->
                                            <el-form-item label="资质类别" prop="consult_zizhi_type">
                                                <el-select v-model="form.consult_zizhi_type" placeholder="资质类别" size="">
                                                    <el-option :label="item.name" :value="item.id" v-for="item in ZXConMessage"></el-option>
                                                </el-select>
                                            </el-form-item>
                                            <!--资质颁发单位-->
                                            <el-form-item label="资质颁发单位" prop="consult_zizhi_award_unit">
                                                <el-select v-model="form.consult_zizhi_award_unit">
                                                    <el-option :label="item.name" :value="item.id" v-for="item in ZXBFMessage"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                        <!--资质等级-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="资质等级" prop="consult_zizhi_level">
                                                <el-select v-model="form.consult_zizhi_level">
                                                    <el-option :label="item.name" :value="item.id" v-for="item in ZXDJMessage"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                        <!--收费标准-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="收费标准" prop="consult_charge_standard">
                                                <el-input v-model="form.consult_charge_standard" placeholder="收费标准"></el-input>
                                            </el-form-item>
                                            <!--专业领域-->
                                            <el-form-item label="专业领域" prop="consult_major_field">
                                                <el-input v-model="form.consult_major_field" placeholder="专业领域"></el-input>
                                            </el-form-item>
                                        </el-form>
                                        <!--添加关键人物-->
                                        <h3>关键人物</h3>
                                        <el-form :inline="true" :model="form" class="demo-form-inline" v-for="(item,index) in arrC" style="padding-left: 80px">
                                            <el-form-item >
                                                <el-select  placeholder="请选择" v-model="consult_relation_person[index]">
                                                    <el-option
                                                            v-for="data in JlMessage"
                                                            :label="data.personal_name"
                                                            :value="data.personal_id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-form-item label="职务">
                                                <el-select  placeholder="请选择" v-model="consult_relation_position[index]">
                                                    <el-option
                                                            v-for="data in Duty"
                                                            :key="data.id"
                                                            :label="data.name"
                                                            :value="data.id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-button type="text" @click="delManC(index)">移除</el-button>
                                        </el-form>
                                        <el-button type="info" @click="addManC" style="margin-left: 80px">添加人物</el-button>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="5"><div >
                                        <h2>评价星级</h2>
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item prop="consult_evaluate_star">
                                                <el-select v-model="form.consult_evaluate_star" placeholder="评价星级">
                                                    <el-option label="一星" value="一星"></el-option>
                                                    <el-option label="二星" value="二星"></el-option>
                                                    <el-option label="三星" value="三星"></el-option>
                                                    <el-option label="四星" value="四星"></el-option>
                                                    <el-option label="五星" value="五星"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                    </div></el-col>
                                </el-row>
                                <!--<div style="width:100px;margin-left:80%">-->
                                    <!--<el-button type="warning" @click="sendFormD">保存能力</el-button>-->
                                <!--</div>-->
                            </div>
                        </template>
                    </el-tab-pane>
                    <el-tab-pane label="承建">
                        <template>
                            <el-radio class="radio" v-model="form.has_construct_ability" label="0">无承建能力</el-radio>
                            <el-radio class="radio" v-model="form.has_construct_ability" label="1">有承建能力</el-radio>
                        </template>
                        <template v-if="form.has_construct_ability==1">
                            <div>
                                <el-row>
                                    <el-col :span="18">
                                        <el-form :inline="true" :model="form" class="demo-form-inline" :label-position="position" label-width="100px">
                                            <!--资质颁发单位-->
                                            <el-form-item label="资质颁发单位" >
                                                <el-select v-model="form.construct_award_unit">
                                                    <el-option :label="item.name" :value="item.id" v-for="item in CJBFMessage"></el-option>
                                                </el-select>
                                            </el-form-item>
                                            <!--资质等级-->
                                            <el-form :inline="true" :model="form" class="demo-form-inline">
                                                <el-form-item label="资质等级" prop="construct_zizhi_level">
                                                    <el-select v-model="form.construct_zizhi_level">
                                                        <el-option :label="item.name" :value="item.id" v-for="item in CJDJMessage"></el-option>
                                                    </el-select>
                                                </el-form-item>
                                            </el-form>
                                            <!--其他-->
                                            <!--收费标准-->
                                            <el-form-item label="收费标准" prop="construct_charge_standard">
                                                <el-input v-model="form.construct_charge_standard" placeholder="收费标准"></el-input>
                                            </el-form-item>
                                            <!--专业领域-->
                                            <el-form-item label="专业领域" prop="construct_major_field">
                                                <el-input v-model="form.construct_major_field" placeholder="专业领域"></el-input>
                                            </el-form-item>
                                            <!--技术团队资源-->
                                            <el-form-item label="技术团队资源" prop="technology_team_resource">
                                                <el-input v-model="form.technology_team_resource" placeholder="技术团队资源"></el-input>
                                            </el-form-item>
                                            <!--主营业务-->
                                            <el-form-item label="主营业务" prop="construct_main_business">
                                                <el-input v-model="form.construct_main_business" placeholder="主营业务"></el-input>
                                            </el-form-item>
                                        </el-form>
                                        <!--业务区域-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="业务区域">
                                                <span v-for="item in provinceOptions" style="margin:10px">{{item}}</span>
                                            </el-form-item>
                                            <el-button type="info" @click="openDialog('addArea')" style="margin-bottom:20px">设置区域</el-button>
                                        </el-form>
                                        <!--施工担保方式-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="施工担保方式">
                                                <el-checkbox-group v-model="form.construct_assure_method">
                                                    <el-checkbox label="62">现金</el-checkbox>
                                                    <el-checkbox label="63">保函</el-checkbox>
                                                    <el-checkbox label="64">第三方</el-checkbox>
                                                    <el-checkbox label="65" >其他</el-checkbox>
                                                </el-checkbox-group>
                                            </el-form-item>
                                        </el-form>
                                        </el-form>
                                        <!--特殊能力-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="特殊能力" prop="special_ability">
                                                <template>
                                                    <el-checkbox-group v-model="form.special_ability">
                                                        <el-checkbox :label="item.id" v-for="item in specialBox">{{item.name}}</el-checkbox>
                                                    </el-checkbox-group>
                                                </template>
                                            </el-form-item>
                                        </el-form>
                                        <h3>关键人物</h3>
                                        <el-form :inline="true" :model="form" class="demo-form-inline" v-for="(item,index) in arrB" style="padding-left: 80px">
                                            <el-form-item >
                                                <el-select v-model="construct_relation_person[index]" placeholder="请选择">
                                                    <el-option
                                                            v-for="data in JlMessage"
                                                            :label="data.personal_name"
                                                            :value="data.personal_id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-form-item label="职务">
                                                <el-select v-model="construct_relation_position[index]" placeholder="请选择">
                                                    <el-option
                                                            v-for="data in Duty"
                                                            :key="data.id"
                                                            :label="data.name"
                                                            :value="data.id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-button type="text" @click="delManB(index)">移除</el-button>
                                        </el-form>
                                        <el-button type="info" @click="addManB" style="margin-left: 80px">添加人物</el-button>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="5"><div >
                                        <h2>评价星级</h2>
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item prop="construct_evaluate_star">
                                                <el-select v-model="form.construct_evaluate_star" placeholder="评价星级">
                                                    <el-option label="一星" value="一星"></el-option>
                                                    <el-option label="二星" value="二星"></el-option>
                                                    <el-option label="三星" value="三星"></el-option>
                                                    <el-option label="四星" value="四星"></el-option>
                                                    <el-option label="五星" value="五星"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                    </div></el-col>
                                </el-row>
                                <!--省份选项-->
                                <el-dialog title="覆盖区域" :visible.sync="dialog.addArea.open" v-if="dialog.addArea.open" :modal="false" top="65%" size="small">
                                    <template>
                                        <el-checkbox-group v-model="form.construct_business_area">
                                            <!--<el-checkbox :label="3432" style="margin: 10px">全国</el-checkbox>-->
                                            <el-checkbox :label="item.district_id" v-for="item in quyuBox" style="margin: 10px">{{item.district}}</el-checkbox>
                                        </el-checkbox-group>
                                        <el-button type="primary" size="small" @click="addProvince('addArea')">确定</el-button>
                                    </template>
                                </el-dialog>
                                <!--<div style="width:100px;margin-left:80%">-->
                                    <!--<el-button type="warning" @click="sendFormD">保存能力</el-button>-->
                                <!--</div>-->
                            </div>
                            <!--<button @click="">保存</button>-->
                        </template>
                    </el-tab-pane>
                    <el-tab-pane label="设备供应">
                        <template>
                            <el-radio class="radio" v-model="form.has_device_supply_ability" label="0">无设备供应能力</el-radio>
                            <el-radio class="radio" v-model="form.has_device_supply_ability" label="1">有设备供应能力</el-radio>
                        </template>
                        <template v-if="form.has_device_supply_ability=='1'">
                            <div>
                                <el-row>
                                    <el-col :span="18">
                                            <!--主营设备-->
                                            <el-form :inline="true" :model="form" class="demo-form-inline">
                                                <el-form-item label="主营设备" >
                                                    <span v-for="item in deviceList " style="margin:10px">{{item}}</span>
                                                </el-form-item>
                                                <el-button type="info" @click="openDialog('addShebei')" style="margin-bottom:20px">设置主营设备</el-button>
                                            </el-form>
                                            <!--企业知名度-->
                                            <el-form-item label="企业知名度" prop="enterprise_popularity">
                                                <el-select v-model="form.enterprise_popularity">
                                                    <el-option :label="item.name" :value="item.id" v-for="item in QYMessage"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                        <!--售后网络覆盖区域-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="覆盖区域">

                                                <span v-for="item in provinceOptionsSB" style="margin:10px">{{item}}</span>
                                            </el-form-item>
                                            <el-button type="info" @click="openDialog('addAreaSB')" style="margin-bottom:20px">设置区域</el-button>
                                        </el-form>
                                        <!--市场占有率-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="市场占有率" prop="market_share">
                                                <el-input v-model="form.market_share" placeholder="市场占有率" type="number"></el-input>
                                            </el-form-item>
                                            <span style="font-size: 25px">%</span>
                                        </el-form>
                                        <!--销售方式-->
                                        <!--<el-form :inline="true" :model="form" class="demo-form-inline">-->
                                            <!--<el-form-item label="特殊能力" prop="sale_way">-->
                                                <!--<template>-->
                                                    <!--<el-checkbox-group v-model="form.sale_way">-->
                                                        <!--<el-checkbox label="1">直销</el-checkbox>-->
                                                        <!--<el-checkbox label="2">代理</el-checkbox>-->
                                                        <!--<el-checkbox label="3">EPC</el-checkbox>-->
                                                        <!--<el-checkbox label="4">其他</el-checkbox>-->
                                                    <!--</el-checkbox-group>-->
                                                <!--</template>-->
                                            <!--</el-form-item>-->
                                        <!--</el-form>-->
                                        <!--添加关键人物-->
                                        <h3>关键人物</h3>
                                        <el-form :inline="true"  class="demo-form-inline" v-for="(item,index) in arrD" style="padding-left: 80px">
                                            <el-form-item >
                                                <el-select v-model="device_relation_person[index]" placeholder="请选择">
                                                    <el-option
                                                            v-for="data in JlMessage"
                                                            :label="data.personal_name"
                                                            :value="data.personal_id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-form-item label="职务">
                                                <el-select v-model="device_relation_position[index]" placeholder="请选择">
                                                    <el-option
                                                            v-for="data in Duty"
                                                            :key="data.id"
                                                            :label="data.name"
                                                            :value="data.id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-button type="text" @click="delManD(index)">移除</el-button>
                                        </el-form>
                                        <el-button type="info" @click="addManD" style="margin-left: 80px">添加人物</el-button>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="5"><div >
                                        <h2>评价星级</h2>
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item prop="device_evaluate_star">
                                                <el-select v-model="form.device_evaluate_star" placeholder="评价星级">
                                                    <el-option label="一星" value="一星"></el-option>
                                                    <el-option label="二星" value="二星"></el-option>
                                                    <el-option label="三星" value="三星"></el-option>
                                                    <el-option label="四星" value="四星"></el-option>
                                                    <el-option label="五星" value="五星"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                    </div></el-col>
                                </el-row>
                                <!--设备供应-->
                                <el-dialog title="设备供应选项" :visible.sync="dialog.addShebei.open" v-if="dialog.addShebei.open" :modal="false" top="58%" size="small">
                                    <template>
                                        <!--设备选项-->
                                        <el-checkbox-group v-model="form.main_equipment">
                                            <el-checkbox :label="item.id" v-for="item in SBMessage" style="margin: 10px">{{item.name}}</el-checkbox>
                                        </el-checkbox-group>
                                        <el-button type="primary" size="small" @click="commit('addShebei')">确定</el-button>
                                    </template>
                                </el-dialog>
                                <!--省份选项-->
                                <el-dialog title="覆盖区域" :visible.sync="dialog.addAreaSB.open" v-if="dialog.addAreaSB.open" :modal="false" top="65%" size="small">
                                    <template>
                                        <el-checkbox-group v-model="form.sh_network_cover_region">
                                            <!--<el-checkbox :label="3432" style="margin: 10px">全国</el-checkbox>-->
                                            <el-checkbox :label="item.district_id" v-for="item in quyuBox" style="margin: 10px">{{item.district}}</el-checkbox>
                                        </el-checkbox-group>
                                        <el-button type="primary" size="small" @click=" addProvinceSB('addAreaSB')">确定</el-button>
                                    </template>
                                </el-dialog>
                                <!--<div style="width:100px;margin-left:80%">-->
                                    <!--<el-button type="warning" @click="sendFormD">保存能力</el-button>-->
                                <!--</div>-->
                            </div>
                        </template>
                    </el-tab-pane>
                    <el-tab-pane label="投资">
                        <template>
                            <el-radio class="radio" v-model="form.has_invest_ability " label="0">无投资能力</el-radio>
                            <el-radio class="radio" v-model="form.has_invest_ability " label="1">有投资能力</el-radio>
                        </template>
                        <template v-if="form.has_invest_ability=='1'">
                            <div>
                                <el-row>
                                    <el-col :span="18">
                                        <!--添加关键人物-->
                                        <h3>关键人物</h3>
                                        <el-form :inline="true"  class="demo-form-inline" v-for="(item,index) in arrI" style="padding-left: 80px">
                                            <el-form-item >
                                                <el-select v-model="invest_relation_person[index]" placeholder="请选择">
                                                    <el-option
                                                            v-for="data in JlMessage"
                                                            :label="data.personal_name"
                                                            :value="data.personal_id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-form-item label="职务">
                                                <el-select v-model="invest_relation_position[index]" placeholder="请选择">
                                                    <el-option
                                                            v-for="data in Duty"
                                                            :key="data.id"
                                                            :label="data.name"
                                                            :value="data.id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-button type="text" @click="delManI(index)">移除</el-button>
                                        </el-form>
                                        <el-button type="info" @click="addManI" style="margin-left: 80px">添加人物</el-button>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="5"><div >
                                        <h2>评价星级</h2>
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item>
                                                <el-select v-model="form.invest_evaluate_star" placeholder="评价星级">
                                                    <el-option label="一星" value="一星"></el-option>
                                                    <el-option label="二星" value="二星"></el-option>
                                                    <el-option label="三星" value="三星"></el-option>
                                                    <el-option label="四星" value="四星"></el-option>
                                                    <el-option label="五星" value="五星"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                    </div></el-col>
                                </el-row>
                                <!--<div style="width:100px;margin-left:80%">-->
                                <!--<el-button type="warning" @click="sendFormD">保存能力</el-button>-->
                                <!--</div>-->
                            </div>
                        </template>
                    </el-tab-pane>
                    <el-tab-pane label="运维">
                        <template>
                            <el-radio class="radio" v-model="form.has_operation_ability" label="0">无运维能力</el-radio>
                            <el-radio class="radio" v-model="form.has_operation_ability" label="1">有运维能力</el-radio>
                        </template>
                        <template v-if="form.has_operation_ability==1">
                            <div>
                                <el-row>
                                    <el-col :span="18">
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <!--主营业务-->
                                            <el-form-item label="主营业务" prop="operation_main_business">
                                                <el-input v-model="form.operation_main_business" placeholder="主营业务"></el-input>
                                            </el-form-item>
                                        </el-form>
                                        <!--企业优势-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="企业优势" prop="enterprise_advantage">
                                                <el-input v-model="form.enterprise_advantage" placeholder="企业优势"></el-input>
                                            </el-form-item>
                                        </el-form>
                                        <!--业务区域-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="业务区域">
                                                <span v-for="item in provinceOptionsOP" style="margin:10px">{{item}}</span>
                                            </el-form-item>
                                            <el-button type="info" @click="openDialog('addAreaOP')" style="margin-bottom:20px">设置区域</el-button>
                                        </el-form>
                                        <!--运维补差能力-->
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item label="运维补差能力" prop="operation_bc_ability">
                                                <el-input v-model="form.operation_bc_ability" placeholder="运维补差能力"></el-input>
                                            </el-form-item>
                                            <span sty style="font-size: 25px">万元</span>
                                        </el-form>
                                        <!--添加关键人物-->
                                        <h3>关键人物</h3>
                                        <el-form :inline="true"  class="demo-form-inline" v-for="(item,index) in arrO" style="padding-left: 80px">
                                            <el-form-item >
                                                <el-select v-model="operation_relation_person[index]" placeholder="请选择">
                                                    <el-option
                                                            v-for="data in JlMessage"
                                                            :label="data.personal_name"
                                                            :value="data.personal_id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-form-item label="职务">
                                                <el-select v-model="operation_relation_position[index]" placeholder="请选择">
                                                    <el-option
                                                            v-for="data in Duty"
                                                            :key="data.id"
                                                            :label="data.name"
                                                            :value="data.id">
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                            <el-button type="text" @click="delManO(index)">移除</el-button>
                                        </el-form>
                                        <el-button type="info" @click="addManO" style="margin-left: 80px">添加人物</el-button>
                                    </el-col>
                                    <el-col :span="1">
                                        <hr style="height:200px;width: 1px">
                                    </el-col>
                                    <el-col :span="5"><div >
                                        <h2>评价星级</h2>
                                        <el-form :inline="true" :model="form" class="demo-form-inline">
                                            <el-form-item prop="operation_evaluate_star">
                                                <el-select v-model="form.operation_evaluate_star" placeholder="评价星级">
                                                    <el-option label="一星" value="一星"></el-option>
                                                    <el-option label="二星" value="二星"></el-option>
                                                    <el-option label="三星" value="三星"></el-option>
                                                    <el-option label="四星" value="四星"></el-option>
                                                    <el-option label="五星" value="五星"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                    </div></el-col>
                                </el-row>
                                <!--省份选项-->
                                <el-dialog title="覆盖区域" :visible.sync="dialog.addAreaOP.open" v-if="dialog.addAreaOP.open" :modal="false" top="65%" size="small">
                                    <template>
                                        <el-checkbox-group v-model="form.business_region">
                                            <!--<el-checkbox :label="3432" style="margin: 10px">全国</el-checkbox>-->
                                            <el-checkbox :label="item.district_id" v-for="item in quyuBox" style="margin: 10px">{{item.district}}</el-checkbox>
                                        </el-checkbox-group>
                                        <el-button type="primary" size="small" @click="addProvinceOP('addAreaOP')">确定</el-button>
                                    </template>
                                </el-dialog>
                                <!--<div style="width:100px;margin-left:80%">-->
                                    <!--<el-button type="warning" @click="sendFormD">保存能力</el-button>-->
                                <!--</div>-->
                            </div>
                        </template>
                    </el-tab-pane>
                </el-tabs>
                <el-row>
                    <div style="margin: 10px auto;text-align: center">
                        <el-button type="primary" size="large" @click="submitForm('form')">确定</el-button>
                    </div>
                </el-row>
            </el-tab-pane>
            <!--&lt;!&ndash;附件栏内容编辑&ndash;&gt;-->
            <!--<el-tab-pane label="附件栏" name="fourth" >-->
            <!--<el-form  class="demo-form-inline" label-width="100px" :label-position="position">-->
            <!--<el-form-item label="营业执照">-->
            <!--<el-upload-->
            <!--class="upload-demo"-->
            <!--:on-success="handleChange0"-->
            <!--:action="fileUploadAction"-->
            <!--:on-remove="handleRemove"-->
            <!--:file-list="fileList0">-->
            <!--<el-button size="small" type="primary">点击上传</el-button>-->
            <!--<span>(最多一份)</span>-->
            <!--</el-upload>-->
            <!--</el-form-item>-->
            <!--&lt;!&ndash;财务报表&ndash;&gt;-->
            <!--<el-form-item label="财务报表">-->
            <!--<el-upload-->
            <!--class="upload-demo"-->
            <!--:on-success="handleChange1"-->
            <!--:action="fileUploadAction"-->
            <!--:on-remove="handleRemove"-->
            <!--:file-list="fileList1">-->
            <!--<el-button size="small" type="primary">点击上传</el-button>-->
            <!--<span>(最多一份)</span>-->
            <!--</el-upload>-->
            <!--</el-form-item>-->
            <!--<el-form-item label="照片">-->
            <!--<el-upload-->
            <!--class="upload-demo"-->
            <!--:on-success="handleChange2"-->
            <!--:action="fileUploadAction"-->
            <!--:on-remove="handleRemove"-->
            <!--:file-list="fileList2">-->
            <!--<el-button size="small" type="primary">点击上传</el-button>-->
            <!--<span>(最多一份)</span>-->
            <!--</el-upload>-->
            <!--</el-form-item>-->
            <!--&lt;!&ndash;名片&ndash;&gt;-->
            <!--<el-form-item label="名片">-->
            <!--<el-upload-->
            <!--:multiple="file"-->
            <!--class="upload-demo"-->
            <!--:on-success="handleChange3"-->
            <!--:action="fileUploadAction"-->
            <!--:on-remove="handleRemove"-->
            <!--:file-list="fileList3">-->
            <!--<el-button size="small" type="primary">点击上传</el-button>-->
            <!--<span>(最多六份)</span>-->
            <!--</el-upload>-->
            <!--</el-form-item>-->
            <!--&lt;!&ndash;其他附件&ndash;&gt;-->
            <!--<el-form-item label="其他附件">-->
            <!--<el-upload-->
            <!--:multiple="file"-->
            <!--class="upload-demo"-->
            <!--:on-success="handleChange4"-->
            <!--:action="fileUploadAction"-->
            <!--:on-remove="handleRemove"-->
            <!--:file-list="fileList4">-->
            <!--<el-button size="small" type="primary">点击上传</el-button>-->
            <!--<span>(最多六份)</span>-->
            <!--</el-upload>-->
            <!--</el-form-item>-->
            <!--</el-form>-->
            <!--</el-tab-pane>-->
        </el-tabs>
    </div>
</template>
<script>
    import _http from '@/components/common/http.vue'
    import _param from '@/components/common/param.vue'
    import Bus from '@/config/bus.js'
    import addMan from '@/components/cust/company/addMan.vue'
    import editDesignable from '@/components/cust/common/editCopmany/editDesignable.vue'
    import editConsultable from '@/components/cust/common/editCopmany/editConsultable.vue'
    import editBuildable from '@/components/cust/common/editCopmany/editBuildable.vue'
    import editDeviceable from '@/components/cust/common/editCopmany/editDeviceable.vue'
    import editInvestable from '@/components/cust/common/editCopmany/editInvestable.vue'
    import editOpsable from '@/components/cust/common/editCopmany/editOpsable.vue'
    export default {
        components:{editDesignable,editConsultable,editBuildable,editDeviceable,editInvestable,editOpsable,addMan},
        data() {
            return {
                techPath:[],
                stateMessage:'',
//                营业执照上传列表
                fileList0:[],
//                财务报表
                fileList1:[],
//                照片
                fileList2:[],
//                名片
                fileList3:[],
//                其他附件
                fileList4:[],

                position:'left',
                apiPort:{
                    stateApi:'diction/getEnterpriseType',
                    DutyApi:'diction/getEnterpriseType',
                    customerManager:'ctm/v1/getPersonal',
                    //                    资质类别列表
                    qiYe:'diction/getEnterpriseType',
//
                    sheBei:'adminApi/dicTree',
                    quyuApi:'diction/getProince',
//                    承建特殊能力
                    specialAble:'diction/getEnterpriseType',
                    //                    资质类别列表
                    //                    资质类别列表
                    aptitudeList:'diction/getEnterpriseType',
//                    资质颁发单位列表
                    aptitudeawardList:'diction/getEnterpriseType',
//                    资质等级列表
                    aptitudelevelList:'diction/getEnterpriseType',
//                    编辑接口
                    editApi:'original/enterprise/toeditEnterprise',
                    TijiaoApi:'original/enterprise/editEnterprise',
                    //企业类型字典接口
                    companytypeApi:'diction/getEnterpriseType',
                    //                    #上市情况字典接口
                    inmarketApi:'diction/getEnterpriseType',
                    //                    涉及领域字典接口
                    involvedfieldApi:'diction/getEnterpriseType',
//					区域字典
//                    Area:'diction/region',
                    Area:'diction/region',
//					个人列表地址
                    manList:'ctm/v1/getPersonal',
//					添加提交接口
                    submitApi:'original/enterprise/addEnterprise',
//                   获取技术路径的接口
                     getTech:'original/enterprise/getTechnicalPath'
                },
                //                文件上传路径封装
                fileUploadAction:_param.param.fileUploadUrl,
                rules: {
                    enterprise_name: [
                        { required: true, message: '请输入企业名称', trigger: 'blur' },
                    ],
                    detail_address: [
                        { required: true, message: '请输入详细地址', trigger: 'blur' },
                    ],
                    enterprise_type: [
                        { type:'number',required: true, message: '请选择企业类型', trigger: 'change' }
                    ],
                    is_list: [
                        { type:'number',required: true, message: '请选择上市情况', trigger: 'change' }
                    ],
                    manage_range: [
                        {required: true, message: '请填写经营范围', trigger: 'blur' }
                    ],
                    involve_field: [
                        { type: 'array', required: true, message: '请选择涉及领域', trigger: 'change' }
                    ],
//                    contact_person: [
//                        { required: true, message: '请选择联系人', trigger: 'change' }
//                    ],
                    enterprise_email: [
                        { required: true, message: '请填写企业E-mail', trigger: 'blur' },
                        { type: 'email', message: '请输入正确的邮箱地址', trigger: 'blur,change' }
                    ],
                    enterprise_phone: [
                        { required: true, message: '请填写企业电话', trigger: 'blur' }
                    ],
                },
//                本地文件路径
                imageUrl:'',
                radio1:'1',
                radio2:'1',
                radio3:'1',
                radio4:'1',
                radio5:'1',
                radio6:'1',
                activeName2: 'first',
                form:{
                    follow_record:'',
                    cooperate_achievements:'',
                    company_evaluate:'',
                    company_introduce:'',
                    technical_path:[],
                    stock_code:'',
                    contact_state:'',
                    core_technology:'',
                    enterprise_name:'',
                    enterprise_type:'',
                    is_list:'',
                    involve_field:[],
                    manage_range:'',
                    register_fund:'',
                    legal_person:"",
                    contact_person:'',
                    detail_address:'',
                    enterprise_email:'',
                    enterprise_phone:'',
                    enterprise_fax:'',
                    enterprise_website:"",
                    has_design_ability:'',
                    has_consult_ability:'',
                    has_construct_ability:'',
                    has_device_supply_ability:'',
                    has_invest_ability:'',
                    has_operation_ability:'',
                    province:'',
                    city:'',
                    area:'',
//					设计能力数据
                    design_zizhi_type:'',
                    design_zizhi_award_unit:'',
                    design_zizhi_level:'',
                    design_charge_standard:'',
                    design_major_field:'',
                    design_evaluate_star:'',
//					建造能力数据
                    construct_zizhi_level:'',
                    construct_award_unit:'',
                    construct_charge_standard:'',
                    construct_major_field:'',
                    technology_team_resource:'',
                    construct_main_business:'',
                    construct_business_area:[],
                    construct_assure_method:[],
                    special_ability:[],
                    construct_evaluate_star:'',
//					咨询能力数据
                    consult_zizhi_type:'',
                    consult_zizhi_level:'',
                    consult_zizhi_award_unit:'',
                    consult_charge_standard:'',
                    consult_major_field:'',
                    consult_evaluate_star:'',
//					设备能力数据
                    main_equipment:[],
                    enterprise_popularity:'',
                    sh_network_cover_region:[],
                    market_share:'',
                    sale_way:[],
                    device_evaluate_star:'',
//					运维能力数据
                    operation_main_business:[],
                    enterprise_advantage:'',
                    operation_bc_ability:[],
                    business_region:[],
                    operation_evaluate_star:"",
//					投资能力数据
                    invest_evaluate_star:''
                },

                dialog:{
                    addPath:{
                        open:false
                    },
                    addShebei:{
                        open:false
                    },
                    addArea:{
                        open:false
                    },
                    addAreaOP:{
                        open:false
                    },
                    addAreaSB:{
                        open:false
                    },
                    addFaren:{
                        open:false
                    },
                    addLinkman:{
                        open:false
                    },

                    showHistory:{
                        open:false
                    },
                },
                //                涉及领域参数
                provinceList:'',
                cityList:'',
                countryList:'',
//                城市
                city:[],
//                县
                country:[],
                ComtypeMessage:'',
                shMessage:'',
                LyMessage:'',
                manLists:'',
                LBMessage:'',
                BFMessage:'',
                DJMessage:'',
                quyuBox:[],
                specialBox:'',
                provinceOptions:[],
                QYMessage:'',
                SBMessage:'',
                deviceList:[],
                provinceOptionsSB:[],
                provinceOptionsOP:[],
                ConMessage:'',
                LBMessagedesign:'',
                SJBFMessage:'',
                SJDJMessage:'',
                ZXConMessage:'',
                ZXBFMessage:'',
                ZXDJMessage:'',
                CJBFMessage:'',
                CJLBMessage:'',
                CJDJMessage:'',
                JlMessage:'',
                Duty:'',
                construct_relationship:[],
                operation_relationship:[],
                consult_relationship:[],
                device_relationship:[],
                invest_relationship:[],
//                运维
                operation_relation_position:[],
                operation_relation_person:[],
                //                咨询
                consult_relation_position:[],
                consult_relation_person:[],
//                建造
                construct_relation_position:[],
                construct_relation_person:[],
//                设备
                device_relation_position:[],
                device_relation_person:[],
//                投资
                invest_relation_position:[],
                invest_relation_person:[],
                arrC:[],
                arrB:[],
                arrD:[],
                arrI:[],
                arrO:[],
                userid:'',
                deleteArr:[]

        }
        },
        methods:{
            settePath(par){
                this.openDialog(par)
                var that = this
                var paramsLy = that.querystring.stringify({userid:that.userid,involve_field:that.form.involve_field})
                _http.axiosRequest(that,that.apiPort.getTech,paramsLy,(res)=>{
                    console.log(res)
                that.techPath=res.data.data
                console.log(that.techPath)
            })
            },
            //			添加技术路径
            surePath(par){

                this.closeDialog(par)
            },
            getMan(){
                var that = this
                var paramsLy = that.querystring.stringify({userid:that.userid})
                _http.axiosRequest(that,that.apiPort.manList,paramsLy,(res)=>{
                    console.log("个人")
                that.manLists = res.data

                console.log(res.data)
            })
            },
            getDicdata(){
                var that = this
//				企业联络状态
                var stateCom={code:"contactState",userid:that.userid}
                var statesCom = that.querystring.stringify(stateCom)
                _http.axiosRequest(that,that.apiPort.stateApi,statesCom,(res)=>{
                    that.stateMessage=res.data.data
            })
                //      设计资质类别
                var paramCom={code:"designzzlb",userid:that.userid}
                var paramsCom = that.querystring.stringify(paramCom)
                _http.axiosRequest(that,that.apiPort.aptitudeList,paramsCom,(res)=>{
                    that.LBMessagedesign=res.data.data
                console.log("LBMessage")
                console.log(that.LBMessage)
            })
                //设计资质颁发单位
                var paramSh={code:"design_zzbfdw",userid:that.userid}
                var paramsSh = that.querystring.stringify(paramSh)
                _http.axiosRequest(that,that.apiPort.aptitudeawardList,paramsSh,(res)=>{
                    that.SJBFMessage=res.data.data
            })
                //设计资质等级
                var paramSh={code:"design_zzdj",userid:that.userid}
                var paramsSh = that.querystring.stringify(paramSh)
                _http.axiosRequest(that,that.apiPort.aptitudelevelList,paramsSh,(res)=>{
                    that.SJDJMessage=res.data.data
            })
//                咨询资质类别
                var paramCom={code:"zx_zzlb",userid:that.userid}
                var paramsCom = that.querystring.stringify(paramCom)
                _http.axiosRequest(that,that.apiPort.aptitudeList,paramsCom,(res)=>{
                    that.ZXConMessage=res.data.data
            })
                //咨询资质颁发单位
                var paramSh={code:"zx_zzbfdw",userid:that.userid}
                var paramsSh = that.querystring.stringify(paramSh)
                _http.axiosRequest(that,that.apiPort.aptitudeawardList,paramsSh,(res)=>{
                    that.ZXBFMessage=res.data.data
            })
                //咨询资质等级
                var paramSh={code:"zx_zzdj",userid:that.userid}
                var paramsSh = that.querystring.stringify(paramSh)
                _http.axiosRequest(that,that.apiPort.aptitudelevelList,paramsSh,(res)=>{
                    that.ZXDJMessage=res.data.data
            })
//                承建能力数据
                //      资质类别
                var paramCom={code:"zx_zzlb",userid:that.userid}
                var paramsCom = that.querystring.stringify(paramCom)
                _http.axiosRequest(that,that.apiPort.aptitudeList,paramsCom,(res)=>{
                    that.CJLBMessage=res.data.data
            })
                //承建资质颁发单位
                var paramShc={code:"cj_zzbfdw",userid:that.userid}
                var paramsShc = that.querystring.stringify(paramShc)
                _http.axiosRequest(that,that.apiPort.aptitudeawardList,paramsShc,(res)=>{
                    that.CJBFMessage=res.data.data
                console.log("that.CJBFMessage")
                console.log(that.CJBFMessage)

            })
                //承建资质等级
                var paramSh={code:"cjqyzz",userid:that.userid}
                var paramsSh = that.querystring.stringify(paramSh)
                _http.axiosRequest(that,that.apiPort.aptitudelevelList,paramsSh,(res)=>{
                    that.CJDJMessage=res.data.data
                console.log('承建资质等级')
                console.log(that.CJDJMessage)
            })
//                获取区域字典
                var paramsSh = that.querystring.stringify({userid:that.userid})
                _http.axiosRequest(that,that.apiPort.quyuApi,paramsSh,(res)=>{
                    console.log("quyu")
                console.log(res.data.data)
                that.quyuBox=res.data.data
            })
                var paramSp={code:"cjtsnl",userid:that.userid}
                var paramsSp = that.querystring.stringify(paramSp)
//                获取承建特殊能力字典
                _http.axiosRequest(that,that.apiPort.specialAble,paramsSp,(res)=>{
                    console.log('特殊能力')
                console.log(res.data.data)
                that.specialBox=res.data.data
            })
                //      资质类别
                var paramCom={code:"qyzmd",userid:that.userid}
                var paramsCom = that.querystring.stringify(paramCom)
                _http.axiosRequest(that,that.apiPort.qiYe,paramsCom,(res)=>{
                    that.QYMessage=res.data.data
            })
//                设备类型
                var paramSb={code:"device_lx",userid:that.userid}
                var paramsSb = that.querystring.stringify(paramSb)
                _http.axiosRequest(that,that.apiPort.qiYe,paramsSb,(res)=>{
                    that.SBMessage=res.data.data
            })
            },
            getDic(){
                var that = this
                //获取企业类型接口
                var paramCom={code:"qylx",userid:that.userid}
                var paramsCom = that.querystring.stringify(paramCom)
                _http.axiosRequest(that,that.apiPort.companytypeApi,paramsCom,(res)=>{
                    that.ComtypeMessage=res.data.data
            })
                //上市情况接口
                var paramSh={code:"ssqk",userid:that.userid}
                var paramsSh = that.querystring.stringify(paramSh)
                _http.axiosRequest(that,that.apiPort.inmarketApi,paramsSh,(res)=>{
                    that.shMessage=res.data.data
            })
//                涉及领域
                var paramLy={code:"sjly",userid:that.userid}
                var paramsLy = that.querystring.stringify(paramLy)
                _http.axiosRequest(that,that.apiPort.involvedfieldApi,paramsLy,(res)=>{
                    console.log("sjly")
                console.log(res)
                that.LyMessage=res.data.data
                console.log(that.LyMessage)
            })
                var paramsLy = that.querystring.stringify({userid:that.userid})
                _http.axiosRequest(that,that.apiPort.Area,paramsLy,(res)=>{
                    console.log("地址")
                console.log(res.data.data)
                this.provinceList = res.data.L0
                this.cityList = res.data.L1
                this.countryList = res.data.L2
            })
//				个人用户列表获取
                var paramsLy = that.querystring.stringify({userid:that.userid})
                _http.axiosRequest(that,that.apiPort.Area,paramsLy,(res)=>{
                    console.log("地址")
                console.log(res.data.data)
                this.provinceList = res.data.L0
                this.cityList = res.data.L1
                this.countryList = res.data.L2
                this.change()
            })
                var paramsLy = that.querystring.stringify({userid:that.userid})
                _http.axiosRequest(that,that.apiPort.manList,paramsLy,(res)=>{
                    console.log("个人")
                that.manLists = res.data
//                console.log("这里是用来查看数据的")
//                for(var i in that.manLists){
//                    that.deleteArr.push(that.manLists[i].personal_id)
//                }

//                console.log(that.deleteArr)
                console.log(that.manLists)
            })
//                关系接口
                var paramsLy = that.querystring.stringify({userid:that.userid})
                _http.axiosRequest(that,that.apiPort.customerManager,paramsLy,(res)=>{
                    that.JlMessage=res.data
                console.log('客户经理')
                console.log(that.JlMessage)
            })
                var paramComZ={code:"zhiwei",userid:that.userid}
                var paramsComZ = that.querystring.stringify(paramComZ)
                _http.axiosRequest(that,that.apiPort.DutyApi,paramsComZ,(res)=>{
                    that.Duty=res.data.data
            })
            },
//            头像上传
            beforeUpload0(file){
//                console.log(this.fileList0)
//                console.log(file)
            },
//            change事件
            handleChange0(response,file, fileList) {
//                console.log(fileList)
                this.fileList0 = fileList.slice(-1);
                console.log(this.fileList0)
            },
            handleChange1(response,file, fileList) {
//                console.log(fileList)
                this.fileList1 = fileList.slice(-1);
                console.log(this.fileList0)
            },
            handleChange2(response,file, fileList) {
//                console.log(fileList)
                this.fileList2 = fileList.slice(-1);
                console.log(this.fileList0)
            },
            handleChange3(response,file, fileList) {
//                console.log(fileList)
                this.fileList3 = fileList.slice(-6);
                console.log(this.fileList0)
            },
            handleChange4(response,file, fileList) {
//                console.log(fileList)
                this.fileList4 = fileList.slice(-6);
                console.log(this.fileList4)
            },
//            财务报表
            Success(res, file) {
//                console.log(res)
            },
            commit(addField){
                this.deviceList=[]
                var fie = this.SBMessage
                var che = this.form.main_equipment
                for(var i in che){
                    for(var j in fie){
                        if(fie[j].id==che[i]){
                            this.deviceList.push(fie[j].name)
                        }
                    }
                }
//                this.form.deviceList=this.form.checkList
                this.dialog[addField].open = false
            },
            addProvinceSB(addField){
                this.provinceOptionsSB=[]
                var fie = this.quyuBox
                var che = this.form.sh_network_cover_region
                for(var i in che){
                    for(var j in fie){
                        if(fie[j].district_id==che[i]){
                            this.provinceOptionsSB.push(fie[j].district)
                        }
                    }
                }
                this.dialog[addField].open = false
            },
            addProvinceOP(addField){
                this.provinceOptionsOP=[]
                var fie = this.quyuBox
                var che = this.form.business_region
                for(var i in che){
                    for(var j in fie){
                        if(fie[j].district_id==che[i]){
                            this.provinceOptionsOP.push(fie[j].district)
                        }
                    }
                }
                this.dialog[addField].open = false
            },
//          获取城市
            change(){

                this.city=[]
                for(var a in this.cityList){
                    if(this.form.province==this.cityList[a].pid){
                        this.city.push(this.cityList[a])
                    }
                }
                this.changeThree()

            },
//            获取县级别
            changeThree(){
                this.country=[]
                for(var a in this.countryList){
                    if(this.form.city==this.countryList[a].pid){
                        this.country.push(this.countryList[a])
                    }
                }
            },
            //            获取地址数据接口
            submitForm(formName) {
                var that = this
//				this.commitFlag()
                this.$refs[formName].validate((valid) => {
                    if (valid) {
                        that.form.consult_relation_person=that.consult_relation_person
                        that.form.consult_relation_position=that.consult_relation_position

                        that.form.construct_relation_person=that.construct_relation_person
                        that.form.construct_relation_position=that.construct_relation_position

                        that.form.device_relation_person=that.device_relation_person
                        that.form.device_relation_position=that.device_relation_position

                        that.form.invest_relation_person=that.invest_relation_person
                        that.form.invest_relation_position=that.invest_relation_position

                        that.form.operation_relation_person=that.operation_relation_person
                        that.form.operation_relation_position=that.operation_relation_position
                        if(that.form.consult_relation_person.length!=that.form.consult_relation_position.length){
                            that.$message({
                                message: '保持咨询能力下人物和职务的对应',
                                type: 'warning'
                            });
                        }else if(that.form.construct_relation_person.length!=that.form.construct_relation_position.length){
                            that.$message({
                                message: '保持承建能力下人物和职务的对应',
                                type: 'warning'
                            });
                        }else if(that.form.device_relation_person.length!=that.form.device_relation_position.length){
                            that.$message({
                                message: '保持设备供应能力下人物和职务的对应',
                                type: 'warning'
                            });
                        }else if(that.form.invest_relation_person.length!=that.form.invest_relation_position.length){
                            that.$message({
                                message: '保持投资能力下人物和职务的对应',
                                type: 'warning'
                            });
                        }else if(that.form.operation_relation_person.length!=that.form.operation_relation_position.length){
                            that.$message({
                                message: '保持运维能力下人物和职务的对应',
                                type: 'warning'
                            });
                        }else{
                            console.log("标识")
                            console.log(that.form)
                            var paramForm = that.querystring.stringify(that.form)
                            _http.axiosRequest(that,that.apiPort.TijiaoApi,paramForm,(res)=>{
                                console.log("")
                            console.log(res)
                            if(res.data.code==100){
                                that.$message({
                                    message: '编辑成功',
                                    type: 'success'
                                });
                                setTimeout(function(){
                                    Bus.$emit('closeB',1)
                                },200)

                            }else{
                                that.$message({
                                    message: '操作失败',
                                    type: 'warning'
                                });
                                return false;
                            }
                        })
                        }



            }
            });
            },
            handleRemove(){
            },
            handleAvatarSuccess(res, file) {
                console.log(res)
                console.log(file)
                this.imageUrl = URL.createObjectURL(file.raw);
            },
            beforeAvatarUpload(file) {
//                const isJPG = file.type === 'image/jpeg';
                const isLt2M = file.size / 1024 / 1024 < 2;
//                if (!isJPG) {
//                    this.$message.error('上传头像图片只能是 JPG 格式!');
//                }
                if (!isLt2M) {
                    this.$message.error('上传头像图片大小不能超过 2MB!');
                }
                return  isLt2M;
            },
            openDialog(dialog){
                this.dialog[dialog].open = true
            },
            closeDialog(dialog){
                this.dialog[dialog].open = false
            },
            onSubmit() {
                console.log('submit!');
            },
            //            删除上传文件清空服务器上的内容
            paramFileRemove(){
                this.imageUrl=''
            },
            addProvince(addField){
                this.provinceOptions=[]
                var fie = this.quyuBox
                var che = this.form.construct_business_area
                for(var i in che){
                    for(var j in fie){
                        if(fie[j].district_id==che[i]){
                            this.provinceOptions.push(fie[j].district)
                        }
                    }
                }
//                this.form.provinceOptions=this.formB.construct_business_area
                this.dialog[addField].open = false
            },
//			提供标志
            commitFlag(){
                Bus.$emit('CommitFlag',1);
            },
            addManC(){
                this.arrC.push(1)
            },
            delManC(index){
                this.consult_relation_position.splice(index,1)
                this.consult_relation_person.splice(index,1)
                this.arrC.splice(index,1)
            },
            addManB(){
                this.arrB.push(1)
            },
            delManB(index){
                this.construct_relation_position.splice(index,1)
                this.construct_relation_person.splice(index,1)
                this.arrB.splice(index,1)
            },
            addManI(){
                this.arrI.push(1)
            },
            delManI(index){
                this.invest_relation_position.splice(index,1)
                this.invest_relation_person.splice(index,1)
                this.arrI.splice(index,1)
            },
            addManO(){
                this.arrO.push(1)
            },
            delManO(index){
                this.operation_relation_position.splice(index,1)
                this.operation_relation_person.splice(index,1)
                this.arrO.splice(index,1)
            },
            addManD(){
                this.arrD.push(1)
            },
            delManD(index){
                this.device_relation_position.splice(index,1)
                this.device_relation_person.splice(index,1)
                this.arrD.splice(index,1)
            },
        },
        mounted(){
            this.userid=localStorage.getItem('userId')
            this.form.userid = localStorage.getItem('userId')
            var that = this
            that.getDicdata()
            this.getDic()
            Bus.$on('editFlag',function(val){
//                获取编辑回执内容
                var paramEdit={enterpriseid:val,userid:that.userid}
                var paramsEdit = that.querystring.stringify(paramEdit)
                _http.axiosRequest(that,that.apiPort.editApi,paramsEdit,(res)=>{
                    console.log("编辑内容")
                console.log(res)
                that.res=res
                console.log(res.data.data)
                console.log('打印回执')
                console.log(res)
                that.form.enterprise_name=res.data.data.enterpriseInfo.enterprise_name

                that.form.enterprise_type=res.data.data.enterpriseInfo.enterprise_type
                that.form.contact_state= parseInt(res.data.data.enterpriseInfo.contact_state)?parseInt(res.data.data.enterpriseInfo.contact_state):''
//                alert(res.data.data.enterpriseInfo.contact_state)
                that.form.core_technology=res.data.data.enterpriseInfo.core_technology
                that.form.is_list=res.data.data.enterpriseInfo.is_list
                that.form.manage_range=res.data.data.enterpriseInfo.manage_range
                that.form.register_fund=res.data.data.enterpriseInfo.register_fund

                that.form.legal_person=res.data.data.enterpriseInfo.legal_person
//                if(that.deleteArr.toString().indexOf(res.data.data.enterpriseInfo.legal_person)==-1){
//                    that.form.legal_person=''
//                }
//                for(var i in that.deleteArr){
//                    if(that.deleteArr[i]==that.form.legal_person){
//                        that.form.legal_person=res.data.data.enterpriseInfo.legal_person
//                        return
//                    }else{}
//
//                }
//                console.log(that.deleteArr.toString().indexOf(res.data.data.enterpriseInfo.legal_person))
                that.form.contact_person=res.data.data.enterpriseInfo.contact_person
//                if(that.deleteArr.toString().indexOf(res.data.data.enterpriseInfo.contact_person)==-1){
//                    that.form.contact_person=''
//
//                }
                that.form.detail_address=res.data.data.enterpriseInfo.detail_address

                that.form.enterprise_email=res.data.data.enterpriseInfo.enterprise_email

                that.form.enterprise_phone=res.data.data.enterpriseInfo.enterprise_phone

                that.form.enterprise_fax=res.data.data.enterpriseInfo.enterprise_fax

                that.form.enterprise_website=res.data.data.enterpriseInfo.enterprise_website

                that.form.follow_record=res.data.data.enterpriseInfo.follow_record
                that.form.cooperate_achievements=res.data.data.enterpriseInfo.cooperate_achievements
                that.form.company_evaluate=res.data.data.enterpriseInfo.company_evaluate
                that.form. company_introduce=res.data.data.enterpriseInfo. company_introduce
                that.form.stock_code=res.data.data.enterpriseInfo.stock_code
                that.form.technical_path=res.data.data.enterpriseInfo.technical_path?res.data.data.enterpriseInfo.technical_path.split(',').map(function(item,index,input){
                    return parseInt(item)
                }):[]
                that.form.province=res.data.data.enterpriseInfo.province
                that.form.original_enterprise_id=res.data.data.enterpriseInfo.enterprise_id
                console.log('that.form.original_enterprise_id')
                console.log(that.form.original_enterprise_id)
                that.form.city=''
                that.form.area=''
                that.form.has_design_ability=res.data.data.enterpriseInfo.has_design_ability+''
                console.log(1)
                that.form.has_consult_ability=res.data.data.enterpriseInfo.has_consult_ability+''

                that.form.has_construct_ability=res.data.data.enterpriseInfo.has_construct_ability+''

                that.form.has_device_supply_ability=res.data.data.enterpriseInfo.has_device_supply_ability+''
                console.log(2)
                that.form.has_invest_ability=res.data.data.enterpriseInfo.has_invest_ability+''

                that.form.has_operation_ability=res.data.data.enterpriseInfo.has_operation_ability+''

                that.form.enterprise_type=parseInt(res.data.data.enterpriseInfo.enterprise_type)
                console.log(3)
                that.form.is_list=parseInt(res.data.data.enterpriseInfo.is_list)
                console.log(4)
                that.form.involve_field=res.data.data.enterpriseInfo.involve_field.split(',').map(function(item,index,input){
                    return parseInt(item)
                })
                that.form.province=res.data.data.enterpriseInfo.enterprise_address.split(',').map(function(item,index,input){
                    return parseInt(item)
                })[0]
                that.form.city=res.data.data.enterpriseInfo.enterprise_address.split(',').map(function(item,index,input){
                    return parseInt(item)
                })[1]
                that.form.area=res.data.data.enterpriseInfo.enterprise_address.split(',').map(function(item,index,input){
                    return parseInt(item)
                })[2]
                console.log(5)
//                setTimeout(function(){
//                    that.change()
//                },500)
//                setTimeout(function(){
//                    that.changeThree()
//                },600)

//                承建能力数据
                that.form.construct_zizhi_level=res.data.data.construct.zizhi_level

                that.form.construct_award_unit=res.data.data.construct.zizhi_award_unit
                console.log(6)
                that.form.construct_charge_standard=res.data.data.construct.charge_standard
                console.log(that.form.construct_charge_standard)
                that.form.construct_major_field=res.data.data.construct.major_field
                console.log(that.form.construct_major_field)
                that.form.technology_team_resource=res.data.data.construct.technology_team_resource
                console.log(7)
                that.form.construct_main_business=res.data.data.construct.main_business
                console.log(8)
                console.log(that.form.construct_main_business)
                that.form.construct_business_area=res.data.data.construct.business_area?res.data.data.construct.business_area.split(',').map(function(item,index,input){
                    return parseInt(item)
                }):[]
                console.log(9)
                console.log(that.form.construct_business_area+"是这里")
                that.addProvince('addArea')
                that.form.construct_assure_method=res.data.data.construct.construct_assure_method?res.data.data.construct.construct_assure_method.split(','):''
                console.log('施工担保方式')
                that.form.special_ability=res.data.data.construct.special_ability?res.data.data.construct.special_ability.split(',').map(function(item,index,input){
                    return parseInt(item)
                }):[]

                that.form.construct_evaluate_star=res.data.data.construct.evaluate_star
//                设备能力数据
                that.form.main_equipment=res.data.data.device.main_equipment?res.data.data.device.main_equipment.split(',').map(function(item,index,input){
                    return parseInt(item)
                }):[]
                console.log(10)
                console.log('shebei')
                that.commit('addShebei')
                that.form.enterprise_popularity=res.data.data.device.enterprise_popularity
                that.form.sh_network_cover_region=res.data.data.device.sh_network_cover_region?res.data.data.device.sh_network_cover_region.split(',').map(function(item,index,input){
                    return parseInt(item)
                }):[]
                that.addProvinceSB('addAreaSB')
                that.form.market_share=res.data.data.device.market_share
                that.form.sale_way=res.data.data.device.sale_way?res.data.data.device.sale_way.split(',').map(function(item,index,input){
                    return parseInt(item)
                }):[]
                that.form.device_evaluate_star=res.data.data.device.evaluate_star
//                咨询能力数据
                that.form.consult_zizhi_type=res.data.data.consult.zizhi_type
                console.log("that.form.consult_zizhi_type")
                that.form.consult_zizhi_level=res.data.data.consult.zizhi_level
                console.log(that.form.consult_zizhi_level+'资质颁发单位')
                that.form.consult_zizhi_award_unit=res.data.data.consult.zizhi_award_unit
                console.log("that.form.consult_zizhi_award_unit")
                that.form.consult_charge_standard=res.data.data.consult.charge_standard
                that.form.consult_major_field=res.data.data.consult.major_field
                that.form.consult_evaluate_star=res.data.data.consult.evaluate_star
//                 运维能力数据
                that.form.operation_main_business=res.data.data.operation.main_business
                that.form.enterprise_advantage=res.data.data.operation.enterprise_advantage
                that.form.operation_bc_ability=res.data.data.operation.operation_bc_ability
                that.form.business_region=res.data.data.operation.business_region?res.data.data.operation.business_region.split(',').map(function(item,index,input){
                    return parseInt(item)
                }):[]
                that.addProvinceOP('addAreaOP')
                that.form.operation_evaluate_star=res.data.data.operation.evaluate_star
//                设计能力数据
                that.form.design_zizhi_type=res.data.data.design.zizhi_type
                that.form.design_zizhi_award_unit=res.data.data.design.zizhi_award_unit
                that.form.design_zizhi_level=res.data.data.design.zizhi_level
                that.form.design_charge_standard=res.data.data.design.charge_standard
                that.form.design_major_field=res.data.data.design.major_field
                that.form.design_evaluate_star=res.data.data.design.evaluate_star
                that.form.invest_evaluate_star=res.data.data.invest.evaluate_star
                console.log("打印出来所有的值")
                console.log(that.form)
//                that.design_relationship=res.data.data.design_relationship
                that.construct_relationship=res.data.data.construct_relationship
                that.operation_relationship=res.data.data.operation_relationship
                that.consult_relationship=res.data.data.consult_relationship
                that.device_relationship=res.data.data.device_relationship
               console.log("用来做标志")
                console.log(res.data.data.device_relationship)
                that.invest_relationship=res.data.data.invest_relationship
                that.construct_relation_position=[]
                that.construct_relation_person=[]
                for(var i in that.construct_relationship){
                    that.construct_relation_position.push(that.construct_relationship[i].position)
                    that.construct_relation_person.push(that.construct_relationship[i].personal_id)
                    that.arrB.push(1)
                }
                that.operation_relation_position=[]
                that.operation_relation_person=[]
                for(var j in that.operation_relationship){
                    that.operation_relation_position.push(that.operation_relationship[j].position)
                    that.operation_relation_person.push(that.operation_relationship[j].personal_id)
                    that.arrO.push(1)
                }
                that.consult_relation_position=[]
                that.consult_relation_person=[]
                for(var k in that.consult_relationship){
                    that.consult_relation_position.push(that.consult_relationship[k].position)
                    that.consult_relation_person.push(that.consult_relationship[k].personal_id)
                    that.arrC.push(1)
                }
                that.device_relation_position=[]
                that.device_relation_person=[]
                for(var l in that.device_relationship){
                    that.device_relation_position.push(that.device_relationship[l].position)
                    that.device_relation_person.push(that.device_relationship[l].personal_id)
                    that.arrD.push(1)
                }
                that.invest_relation_position=[]
                that.invest_relation_person=[]
                for(var m in that.invest_relationship){
                    that.invest_relation_position.push(that.invest_relationship[m].position)
                    that.invest_relation_person.push(that.invest_relationship[m].personal_id)
                    that.arrI.push(1)
                }
            })
            })
//			建造能力数据
//            Bus.$on('submitFormB',function(val){
//                console.log("建造能力数据")
//                that.form.construct_zizhi_level=val.construct_zizhi_level
//                that.form.construct_award_unit=val.construct_award_unit
//                that.form.construct_charge_standard=val.construct_charge_standard
//                that.form.construct_major_field=val.construct_major_field
//                that.form.technology_team_resource=val.technology_team_resource
//                that.form.construct_main_business=val.construct_main_business
//                that.form.construct_business_area=val.construct_business_area.sp
//                that.form.construct_assure_method=val.construct_assure_method
//                that.form.special_ability=val.special_ability
//                that.form.construct_evaluate_star=val.construct_evaluate_star
//            })
//			设备能力数据
//            Bus.$on('submitFormSb',function(val){
//                console.log("设备能力数据")
//                that.form.main_equipment=val.main_equipment
//                that.form.enterprise_popularity=val.enterprise_popularity
//                that.form.sh_network_cover_region=val.sh_network_cover_region
//                that.form.market_share=val.market_share
//                that.form.sale_way=val.sale_way
//                that.form.device_evaluate_star=val.device_evaluate_star
//            })
//			设计能力数据
//            Bus.$on('submitFormD',function(val){
//                console.log("设计能力数据")
//                that.form.design_zizhi_type=val.design_zizhi_type
//                that.form.design_zizhi_award_unit=val.design_zizhi_award_unit
//                that.form.design_zizhi_level=val.design_zizhi_level
//                that.form.design_charge_standard=val.design_charge_standard
//                that.form.design_major_field=val.design_major_field
//                that.form.design_evaluate_star=val.design_evaluate_star
//            })
//			咨询能力数据
//            Bus.$on('submitFormC',function(val){
//                console.log("咨询能力数据")
//                that.form.consult_zizhi_type=val.consult_zizhi_type
//                that.form.consult_zizhi_level=val.consult_zizhi_level
//                that.form.consult_zizhi_award_unit=val.consult_zizhi_award_unit
//                that.form.consult_charge_standard=val.consult_charge_standard
//                that.form.consult_major_field=val.consult_major_field
//                that.form.consult_evaluate_star=val.consult_evaluate_star
//            })
//			运维能力数据
//            Bus.$on('submitFormO',function(val){
//                console.log("运维能力数据")
//                that.form.operation_main_business=val.operation_main_business
//                that.form.enterprise_advantage=val.enterprise_advantage
//                that.form.operation_bc_ability=val.operation_bc_ability
//                that.form.business_region=val.business_region
//                that.form.operation_evaluate_star=val.operation_evaluate_star
//            })
//			投资能力数据
//            Bus.$on('submitFormI',function(val){
//                console.log("投资能力数据")
//                that.form.invest_evaluate_star=val.invest_evaluate_star
//            })


//            var that = this
//			Bus.$on('getTarget', function(val){
////                对象复制
//				that.form = Object.assign({}, val);
//			});
            Bus.$on('closeW',function(val){
                if(val==1){
                    that.getMan()
                    setTimeout(function(){
                        console.log(1234)
//                        that.closeDialog('addFaren')
                        that.closeDialog('addLinkman')
                    },500)
                }
            })
        },
        beforeDestroy(){
            Bus.$off("editFlag")
            Bus.$off("closeW")
//            Bus.$off("submitFormC")
//            Bus.$off("submitFormSb")
//            Bus.$off("submitFormO")
//            Bus.$off("submitFormI")
//            Bus.$off("editFlag")
        },
    }
</script>

<style>
    ul li{
        list-style: none;
        margin-top: 20px;
    }
    .listSty{
        display:inline-block;
        width: 100px
    }
    .mainListSty{
        display:inline-block;
        width: 100px;
        color: red;
    }
    .able:after{
        content: "√";
        color: #6ce26c;
    }
    .avatar-uploader .el-upload {
        border: 1px dashed #d9d9d9;
        border-radius: 6px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    .avatar-uploader .el-upload:hover {
        border-color: #20a0ff;
    }
    .avatar-uploader-icon {
        font-size: 28px;
        color: #8c939d;
        width: 120px;
        height: 120px;
        line-height: 120px;
        text-align: center;
        margin-left: 10px;
    }
    .avatar {
        width: 120px;
        height: 120px;
        display: block;
    }
</style>
